﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo2
{
    class Count
    {
        public double r { get; set; }
        public int a { get; set; }
        public int b { get; set; }

        public void C()
        {
            Console.WriteLine("面积："+((a*b)+r));
        }

        //圆
        public Count(int r)
        {
            this.r = r * r * 3.14;
        }
        //长方形
        public Count(int a, int b)
        {
            this.a = a;
            this.b = b;
        }
    }
}
